
#include "udev.h"
#include <cstdio>

using namespace KWin;
int main(int argc, char *argv[])
{
    KWin::Udev udev;
    std::vector<UdevDevice::Ptr> s = udev.listGPUs();
    for (auto &i : s) {
        const char *strTemp = i->parentPciProperty("PCI_ID");
        printf("%s: %s\n", i->devNode(), strTemp);
    }

    udev.primaryGpu();
}
